<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
		<%@ taglib uri="http://www.tietiao.com/functions" prefix="my"%>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>邀请好友</title>
		<%@ include file="../include/easyjs_include.jsp"%>
		<script type="text/javascript" src="./js/fg/common/utils.js"></script>
		<script type="text/javascript">
	$(document).ready(function(){
	//global vars
	var email = $("#email");
	email.blur(validateEmail);
	function validateEmail(){
		if(email.val()==''){
			email.next().html('');
			email.next().next().next().html("邮箱不能为空").show();
			return false;
		}else if(!isEmail(email.val())){
			email.next().html('');
			email.next().next().next().html("邮箱格式不正确").show();
			return false;
		}else{
			email.next().html('OK');
			email.next().next().next().hide();
			return true;
		}
	}
		if('${result}'=='true'){
			alert('恭喜您，邀请好友成功！');
		}else if('${result}'=='false'){
			alert('抱歉，邀请好友失败，请重试！');
		}
	});
	
	</script>
	</head>
	<body class="no-subnav page-home">
		<c:import url="../include/default_head.jsp" />
		<div class="container">
	<div class="sign up2" id="content">
		<div class="teaser alt">
			<div class="container"> </div>
			<!-- / container --> 
		</div>
		<!-- / teaser -->
		
		<div class="wrapper-content">
			<div style="text-align:right;font-size:12px;" class="wrapper-content-title">您好 ${user.petName}</div>
			<div id="content">
				<div class="reg-step-area">
					<div style="font-size:30px;padding:10px 0;">邀请好友</div>
				</div>
				<form action="./ucenter_ucenter_invite.htm" id="formId" method="post">
					${my:tokenInput()}
					<input id="ajaxPetName" value="0" type="hidden"/>
					<input id="ajaxEmail"  value="0" type="hidden">
					<fieldset class="hastext">
						<span class="title">邮箱：</span>
						<input type="text" name="email" id="email" placeholder="请输入邮箱" type="text" maxlength="50">
						<span class="chk"></span><span>符合a@b.c邮箱格式，最少5位</span>
						<span class="error message" style="display:none;">该邮箱已被注册</span><br />
						<span class="title">&nbsp;</span>
						<button class="button sign" type="submit" id="buttionSubmit">邀请</button>
					</fieldset>
				</form>
			</div>
		</div>
</div>
	<c:import url="../include/default_foot.jsp" />
</div>
		<!-- 
		<div class="sign up2">
			<div class="container">
				<div class="teaser alt">
					<div class="container">
					</div>
				</div>
				<div class="wrapper-content">
					<div class="wrapper-content-title">
						<span>你好 ${user.petName}</span>
					</div>
					<div id="content">
						<h2>邀请好友</h2>
						<form action="./ucenter_ucenter_invite.htm" id="formId" method="post">
							${my:tokenInput()}
							<input id="ajaxPetName" value="0" type="hidden"/>
							<input id="ajaxEmail"  value="0" type="hidden">
							<fieldset class="hastext">
								<span class="title">邮箱：</span>
								<input class="sffocus jqPlaceholder" name="email" id="email" placeholder="请输入邮箱" type="text" maxlength="50">
								<span class="chk"></span><span>符合a@b.c邮箱格式，最少5位</span>
								<span class="error message" style="display:none;">该邮箱已被注册</span><br />
								<span class="title">&nbsp;</span>
								<button type="submit" class="button sign" id="buttionSubmit">邀请</button>
							</fieldset>
						</form>
					</div>
				</div>
				
			</div>
		</div>
		<!-- / container -->
		<div id="fb-root">
		</div>
		 -->
	</body>
</html>